home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / fprintf < prev    next >
Text File  |  1994-04-25  |  925b  |  29 lines

  1. fprintf:
  2.  
  3. Syntax:    fprintf ( file_string , format_string , VARi ... )
  4.  
  5. Description:
  6.     
  7.     The RLaB fprintf() is a limited feature version of the
  8.     C-language fprintf(). The features are limited because RLaB
  9.     does not support all of the data types the C-language does.
  10.  
  11.     file_string: The 1st string argument determines the file to
  12.     which the output is sent. If the filename starts with a '|'
  13.     then a pipe is opened to the process following the '|' and the
  14.     output is written to the pipe. For example:
  15.  
  16.     > fprintf("|gnuplot"; "set term X11\n plot sin(x)\n");
  17.  
  18.     will create the sub-process gnuplot, and pipe the command
  19.     string to it.
  20.  
  21.     format_string: A valid fprintf format string.
  22.  
  23.     VARi: Are any number of constants or variables that match the
  24.     format string. fprintf() cannot print out vector, matrix, or
  25.     list objects as a whole. Valid print objects are strings,
  26.     constants, and scalars.
  27.  
  28. See Also: printf, sprintf, write, read
  29.